<template>
    <button @click='click'>66666666
      <slot></slot>
    </button>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'my-button',
    data() {
        return {
        
        }
    },
    methods: {
      click(){
        this.$emit('click')
      }
    },
    components: {
        
    }
}
</script>
<style lang="less">
  button{
    color:red
  }
</style>